package com.accp.vehiclecare.biz.xzhbiz;

import com.accp.vehiclecare.dao.xzhdao.RoleDao;
import com.accp.vehiclecare.vo.xzhvo.RoleVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

/**
 * 角色biz
 */
@Service("RoleBiz")
public class RoleBiz extends ServiceImpl<RoleDao, RoleVO> {

    /**
     * 查询角色
     * @return
     */
    @Transactional(propagation = Propagation.SUPPORTS, isolation = Isolation.READ_COMMITTED, readOnly = true)
    public List<RoleVO> queryRole(){
        return super.baseMapper.selectList(null);
    }
}
